import { createMemoryHistory,createRouter, createWebHashHistory, type RouteComponent, type Router, type RouteRecordRaw } from "vue-router";

import HelloWorld from "../components/HelloWorld.vue";
import Test from "../components/Test.vue";

const routes:RouteRecordRaw[] = [
    {
        path:'/',
        component:HelloWorld
    },
    {
        path:'/t',
        component:HelloWorld
    },
    {
        path:'/test',
        component:Test
    },
]
// console.log(routes)

const router:Router = createRouter({
    history:createWebHashHistory(),
    routes
})

export default router